:root {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-primary: #bb86fc;
    --color-secondary: #03dac6;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-success: #00e676;
    --color-error: #cf6679;
    --spacing-unit: 8px;
    --border-radius: 16px;
    --transition-duration: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 4);
}

header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

h1 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.summary-item {
    background-color: var(--color-surface);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.summary-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.summary-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-unit);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.summary-value.success {
    color: var(--color-success);
}

.summary-value.failed {
    color: var(--color-error);
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.result-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.avatar {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info {
    padding: calc(var(--spacing-unit) * 3);
}

.name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary);
}

.result-text {
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-secondary);
}

.value-change {
    color: var(--color-success);
    font-weight: bold;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.current-value {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.result-card.success {
    box-shadow: 0 0 0 2px var(--color-success);
}

.result-card.failed {
    box-shadow: 0 0 0 2px var(--color-error);
}

.result-card.resting {
    box-shadow: 0 0 0 2px var(--color-secondary);
}

.cooldown {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

@media (max-width: 768px) {
    .container {
        padding: calc(var(--spacing-unit) * 2);
    }

    h1 {
        font-size: 2rem;
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .results {
        grid-template-columns: 1fr;
    }
}